using System.Collections.Generic;
using UnityEngine;

namespace HEFramework
{
    /// <summary>
    /// Level data,Level.xlsx
    /// </summary>
    public class DRLevel:IData
    {
        
        /// <summary>
        /// ID  different
        /// </summary>
        public int ID { get; protected set; }
        /// <summary>
        /// 级别组  
        /// </summary>
        public int[] Levels { get; protected set; }
        /// <summary>
        /// 经验组  
        /// </summary>
        public int[] Exps { get; protected set; }
        /// <summary>
        /// 奖励ID组  
        /// </summary>
        public int[] RewardIDs { get; protected set; }
        /// <summary>
        /// 奖励值组  
        /// </summary>
        public int[] RewardValues { get; protected set; }

        
        public void ParseDataRow(string input)
        {
            string[] text = input.Split('	');
            int index = 0;
        
            ID = int.Parse(text[index++]);
            Levels = DataTableExtension.ParseIntArr(text[index++]);
            Exps = DataTableExtension.ParseIntArr(text[index++]);
            RewardIDs = DataTableExtension.ParseIntArr(text[index++]);
            RewardValues = DataTableExtension.ParseIntArr(text[index++]);

        }
        
        private void AvoidJIT()
        {
            new Dictionary<int, DRLevel>();
        }
    }
}